Repository navigation
Conversation
…cap (#4335) Collect the request body via the shared createRequestBodyCollector from bin/request-body.mjs: bytes are buffered with a 50MB cap (413 past it) and decoded as UTF-8 once, instead of per-chunk string coercion that corrupted multibyte characters split across chunks. Regression tests: split-chunk multibyte body arrives intact; 51MB body is rejected with 413.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Closing as obsolete — salvage note (per duplicate/obsolete PR protocol):
|
Summary
Fixes #4335.
Evidence
node --test bin/opencode-route-proxy.test.mjs— 27 passed, 0 failed (includes 2 new regression tests).caf�� �� fin) and passes with the fix.bin/opencode-route-proxy.mjs(singleraw +=site replaced).Merge Danger
Door: one-way
Blast Radius: low
Only the
/v1/chat/completionsbody-read path changes; valid requests behave identically apart from intact multibyte content. Cap matches the sibling proxies (50MB, same shared collector from PR #4322).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.